<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
<head>

</head>

<body >

<h1>欢迎访问我的主页</h1>
<p>关闭窗口或者按 F5 刷新页面。</p>
<script>
    window.onunload = function(){
        alert("感谢你访问w3cschool菜鸟教程。");
    }
    function ajax(url,cb){
        let xmlhttp = new XMLHttpRequest()
        xmlhttp.open('')
        xmlhttp.send();
        xmlhttp.onreadystatechange = function(){
            if(xmlhttp.status == 4 && xmlhttp.status == 200){

            }
        }
    }

</script>
</body>
</html>
